.source exemplo07.java
.class public exemplo07
.super java/lang/Object
.method public <init>()V
.limit stack 1
.limit locals 1
aload_0
invokespecial java/lang/Object/<init>()V
return
.end method

.method public static main([Ljava/lang/String;)V
.limit stack 6
.limit locals 9
 
getstatic java/lang/System/out Ljava/io/PrintStream;
ldc "quantos valores: "
invokevirtual java/io/PrintStream/println(Ljava/lang/String;)V

new java/util/Scanner 
dup 
getstatic java/lang/System/in Ljava/io/InputStream; 
invokespecial java/util/Scanner/<init>(Ljava/io/InputStream;)V 
invokevirtual java/util/Scanner/nextDouble()D 
dstore_1

ldc2_w 0.0 
dstore_3
ldc2_w 1.0 
dstore 5
TESTE_ENQUANTO_1:
dload 5
dload_1 
dcmpg
ifle VERDADEIRO_1
dconst_0 
goto CONTINUA_1
VERDADEIRO_1: 
dconst_1 
CONTINUA_1: 
dconst_0
dcmpg
ifeq SAIDA_ENQUANTO_1
getstatic java/lang/System/out Ljava/io/PrintStream;
ldc "Digite um valor"
invokevirtual java/io/PrintStream/println(Ljava/lang/String;)V

new java/util/Scanner 
dup 
getstatic java/lang/System/in Ljava/io/InputStream; 
invokespecial java/util/Scanner/<init>(Ljava/io/InputStream;)V 
invokevirtual java/util/Scanner/nextDouble()D 
dstore 7

dload_3 
dload 7
dadd 
dstore_3
dload 5
ldc2_w 1.0 
dadd 
dstore 5
goto TESTE_ENQUANTO_1
SAIDA_ENQUANTO_1:

getstatic java/lang/System/out Ljava/io/PrintStream;
ldc "Valor da media: "
invokevirtual java/io/PrintStream/println(Ljava/lang/String;)V

getstatic java/lang/System/out Ljava/io/PrintStream;
dload_3 
dload_1 
ddiv 
invokevirtual java/io/PrintStream/println(D)V


return
.end method
